package com.demo.fullink.service;

import com.demo.fulllink.module.po.OrderPO;
import com.demo.fulllink.module.vo.OrderVO;
import com.demo.fulllink.module.vo.ResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.Serializable;

@FeignClient(name = "storage-service", path = "/storage/order", contextId = "order")
public interface StorageOrderService {
    
    @RequestMapping("/findByID/{orderid}")
    public OrderPO findByID(@PathVariable("orderid") Serializable orderid);
    
    @RequestMapping("/insert")
    public void insert(@RequestBody OrderPO orderPO);
    
    @RequestMapping("/update")
    public void update(@RequestBody OrderPO orderPO);
    
    @RequestMapping("/actualPlaceOrder")
    public ResponseVO actualPlaceOrder(@RequestBody OrderVO orderVO);
    
}
